package com.kmzx.one.common.enums;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

public enum FAQTypeEnum {
    ALL(0, "全部"),
    MEMBER(1, "会员"),
    SHOPPING(2, "购物"),
    AFTERSALE(3, "售后");
    @Getter
    private int value;
    @Getter
    private String desc;

    private FAQTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static List<FAQTypeEnum> convertList() {
        List<FAQTypeEnum> list = new ArrayList<>();
        for (FAQTypeEnum em : values()) {
            list.add(em);
        }
        return list;
    }
}
